from src.game.ai.state import State
import random

class WaitAI(State):
    
    def __init__(self, priority, entity):
        State.__init__(self, priority, entity)
        
        
    def shouldStart(self):
        if random.randint(0,100) < 10:
            return True
        return False
    
    def shouldContinue(self):
        if random.randint(0, 100) < 5:
            return True
        return False
    
    def onStart(self):
        pass
    
    def update(self):
        self.entity.motionX = 0
        self.entity.motionY = 0